
kmpkg_from_gitee(
        OUT_SOURCE_PATH SOURCE_PATH
        REPO kumo-pub/kraft
        REF v${VERSION}
        SHA512 fa072fdf3eebaa76341719b721a56a6927e61d8da83b703bfc8099a3b58b15ea450f41e025206c61d750bb7fcbf1c090c101ed0ba9ebdc0e98d6196e5904c310
        HEAD_REF master
)


kmpkg_cmake_configure(
    SOURCE_PATH "${SOURCE_PATH}"
)

kmpkg_cmake_install()
kmpkg_copy_pdbs()

kmpkg_cmake_config_fixup(PACKAGE_NAME kraft CONFIG_PATH lib/cmake/kraft)

kmpkg_copy_tools(TOOL_NAMES kraft_cli AUTO_CLEAN)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/kraft/tools")

kmpkg_fixup_pkgconfig()
kmpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
